export const routes = [
    {
        path: '/',
        name: 'Nav',
        component: () => import('../views/Nav.vue'),

        children: [
            {
                path: 'home',
                alias: '',
                name: 'Home',
                component: () => import('../views/Home.vue'),
            },
            {
                path: 'order',
                name: 'Order',
                component: () => import('../views/Order.vue'),
            },
            {
                path: 'arrorder',
                name: 'Arrorder',
                component: () => import('../views/Arrorder.vue'),
            },
            {
                path: 'my',
                name: 'My',
                component: () => import('../views/My.vue'),
            },
        ]
    },
    {
        path: '/login',
        name: 'Login',
        component: () => import('../views/Login.vue')
    },
    {
        path: '/settle',
        name: 'Settle',
        component: () => import('../views/Settle.vue')
    },
    {
        path: '/receiving',
        name: 'Receiving',
        component: () => import('../views/Receiving.vue')
    },
    {
        //aid:地址aid，编辑地址需要的地址aid，新增地址不需要
        path: '/addreceiving/:aid?',
        name: 'Addreceiving',
        component: () => import('../views/Addreceiving.vue')
    },
    {
        path: '/myorder',
        name: 'Myorder',
        component: () => import('../views/Myorder.vue')
    },
    {
        path: '/search',
        name: 'Search',
        component: () => import('../views/Search.vue')
    },
    {
        path: '/code',
        name: 'Code',
        component: () => import('../views/Code.vue')
    },
    {
        path: '/mydata',
        name: 'Mydata',
        component: () => import('../views/Mydata.vue')
    },
    {
        path: '/news',
        name: 'News',
        component: () => import('../views/News.vue')
    },
    {
        path: '/exchange',
        name: 'Exchange',
        component: () => import('../views/Exchange.vue')
    },
    {
        path: '/setup',
        name: 'Setup',
        component: () => import('../views/Setup.vue')
    },
    {
        path: '/customer',
        name: 'Customer',
        component: () => import('../views/Customer.vue')
    },
    {
        path: '/collection',
        name: 'Collection',
        component: () => import('../views/Collection.vue')
    },
    {
        path: '/account',
        name: 'Account',
        component: () => import('../views/Account.vue')
    },
    {
        path: '/password',
        name: 'Password',
        component: () => import('../views/Password.vue')
    },
    {
        path: '/forget',
        name: 'Forget',
        component: () => import('../views/Forget.vue')
    },
]